package xyz.cerberu.cet.global.domain;

/**
 * @author β世界
 * 异常处理的请求返回码
 */
public class ExceptionEncode {
    /** 服务情况的异常 **/
    public static final int CODE_EXCEPTION = 1000;
    /** 参数异常 **/
    public static final int PARAM_EXCEPTION = 1001;
    /** 邮箱异常 **/
    public static final int EMAIL_EXCEPTION = 1002;

    /** 请求状态异常 **/
    public static final int STATUS_EXCEPTION = 4002;

    /** 动漫类状态码 **/
    public static final int ANIME_NOT_FOUND_EXCEPTION = 4101;

    /** Redis连接超时异常 **/
    public static final int REDIS_CONNECTION_EXCEPTION = 6001;

    /** 用户状态错误 **/
    public static final int USER_STATUS_EXCEPTION = 5001;
    /** 用户权限不足 **/
    public static final int USER_AUTHORITY_EXCEPTION = 5002;
    /** 重复订阅 **/
    public static final int SUBSCRIPTION_STATUS_EXCEPTION = 5010;

}
